<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>02_箭头函数</title>
</head>

<body>
    <script>
        //this是静态的
        function getName() {
            console.log(this.name);
        }

        let getName2 = () => {
            console.log(this.name);
        }

        window.name = '兰德';
        const school = {
            name: 'ATGUI'
        }

        getName()
        getName2()

        getName.call(school)
        getName2.call(school)
    </script>
</body>

</html>